#include<stack>
#include<iostream>
using namespace std;
int main(){
	int a[50001],i,l;
	string s;
	stack<int>b;
	fill(a,a+50001,0);
	cin>>s;
	l=s.size();
	for(i=1;i<=l;++i){
		if(s[i-1]=='(')
			b.push(i);
		else{
			if(b.empty()){cout<<"No"<<endl;return 0;}
			a[b.top()]=i;
			b.pop();
		}
	}
	if(b.empty()){
		cout<<"Yes"<<endl;
		for(i=1;i<l;++i)
			if(a[i]) cout<<i<<' '<<a[i]<<endl;
	}
	else cout<<"No"<<endl;
	return 0;
}